
Pod::Spec.new do |s|
  s.name             = 'CimKit'
  s.version          = '0.0.7'
  s.summary          = 'CimKit iOS SDK'
  s.description      =  'CimKit iOS SDK description'
  s.homepage         = 'https://gitee.com/Siter/cimkit'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'siterwu' => 'siterwu@gmail.com' }
  s.source           = { :git => 'https://gitee.com/Siter/cimkit.git', :tag => "#{s.version}" }

  s.ios.deployment_target = '10.0'

  #控制安装 Pod 的时候判断使用源码还是二进制库
  $lib = ENV['use_lib']
  $lib_name = ENV["#{s.name}_use_lib"]

  if $lib || $lib_name
    puts '-------------------------------------------------------------------'
    puts 'Notice:CimKit is binary now'
    puts '-------------------------------------------------------------------'
    s.source_files='Products/CimKit.framework/Headers/*.h'
    s.public_header_files= 'Products/CimKit.framework/*.h'
    s.vendored_framework= 'Products/CimKit.framework'

  else
    puts '-------------------------------------------------------------------'
    puts 'Notice:CIMKit is source now'
    puts '-------------------------------------------------------------------'
    s.source_files  = 'CIMKit/CIMKit/**/*.{h,m}'

  end

  s.dependency "SocketRocket", '~> 0.5.1'
  s.dependency "Protobuf", '~> 3.13.0'
  s.dependency "CocoaAsyncSocket", '~> 7.6.4'

end
